package com.zy.oop1118;

import java.util.Date;

/**
 * @Author GongXL
 * @Description TODO
 * @dATE 2021/11/18 10:04
 **/
public class Person {
    private String name;
    private int age;
    private Date birthDate;
    public Person(){

    }
    public Person(String name, int age, Date d) {
        this.name = name;
        this.age = age;
        this.birthDate = d;
    }
    public Person(String name, int age) {
        this(name, age, null);
    }
    public Person(String name, Date d) {
        this(name, 30, d);
    }
    public Person(String name) {
        this(name, 30);
    }

}
